package com.jzr.bedside.db1.model;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 病人费用
 * </p>
 *
 * @author henry
 * @since 2019-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TFee对象", description="病人费用")
public class TFee implements Serializable {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_fee";
    public static final String Id_ = "id";
    public static final String InvNo_ = "inv_no";
    public static final String PatientCode_ = "patient_code";
    public static final String CureNo_ = "cure_no";
    public static final String CostTime_ = "cost_time";
    public static final String ItemCode_ = "item_code";
    public static final String ItemName_ = "item_name";
    public static final String ItemDetail_ = "item_detail";
    public static final String BillQty_ = "bill_qty";
    public static final String Unit_ = "unit";
    public static final String UnitPrice_ = "unit_price";
    public static final String DiscPrice_ = "disc_price";
    public static final String InsPrice_ = "ins_price";
    public static final String PatPrice_ = "pat_price";
    public static final String DiscAmount_ = "disc_amount";
    public static final String PayorAmount_ = "payor_amount";
    public static final String PatAmount_ = "pat_amount";
    public static final String TotalAmount_ = "total_amount";
    public static final String Status_ = "status";
    public static final String UpdateBy_ = "update_by";
    public static final String UpdateTime_ = "update_time";
    public static final String IsDel_ = "is_del";


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发票号")
    @TableField("inv_no")
    private String invNo;

    @ApiModelProperty(value = "病人编号")
    @TableField("patient_code")
    private String patientCode;

    @ApiModelProperty(value = "住院号")
    @TableField("cure_no")
    private String cureNo;

    @ApiModelProperty(value = "计费时间")
    @TableField("cost_time")
    private LocalDateTime costTime;

    @ApiModelProperty(value = "费用编号")
    @TableField("item_code")
    private String itemCode;

    @ApiModelProperty(value = "费用名称")
    @TableField("item_name")
    private String itemName;

    @ApiModelProperty(value = "费用明细")
    @TableField("item_detail")
    private String itemDetail;

    @ApiModelProperty(value = "数量")
    @TableField("bill_qty")
    private BigDecimal billQty;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "折扣单价")
    @TableField("disc_price")
    private BigDecimal discPrice;

    @ApiModelProperty(value = "社保单价")
    @TableField("ins_price")
    private BigDecimal insPrice;

    @ApiModelProperty(value = "自付单价")
    @TableField("pat_price")
    private BigDecimal patPrice;

    @ApiModelProperty(value = "折扣金额")
    @TableField("disc_amount")
    private BigDecimal discAmount;

    @ApiModelProperty(value = "记账金额")
    @TableField("payor_amount")
    private BigDecimal payorAmount;

    @ApiModelProperty(value = "自付金额")
    @TableField("pat_amount")
    private BigDecimal patAmount;

    @ApiModelProperty(value = "总金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "缴费状态（0-未支付，1-已支付)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("is_del")
    private Boolean isDel;


}
